{breadcrumbs}<a href="{$GLOBALS.site_url}/manage-languages/">Manage Languages</a> &#187; Add language{/breadcrumbs}
<h1><img src="{image}/icons/exchange32.png" border="0" alt="" class="titleicon"/>Add language</h1>

{if $errors}
	{include file="errors.tpl" errors=$errors}
{/if}

<p>Fields marked with an asterisk (<font color="red">*</font>) are mandatory</p>

<fieldset>
	<legend>Add a New Language</legend>
	<table>
	<form method="post" enctype="multipart/form-data">    
    <tr>
        <td>Language ID</td>
        <td><span class="required">*</span></td>
        <td>
        	<input type="text" name="languageId" value="{$request_data.languageId}" /><br />
        	<small>
        		Use two-letter language ID (en, fr, es). <br />
        		Full List: <a href="{$GLOBALS.site_url}/ISO_639-1.html">ISO_639-1.html</a>
        	</small>
        </td>
    </tr>
     <tr>
        <td>Language Caption</td>
        <td class="required">*</td>
        <td><input type="text" name="caption" value="{$request_data.caption}" /></td>
    </tr>
	<tr>
		<td colspan="2">[[Active for Frontend]]</td>
		<td>
			<input type="hidden" name="activeFrontend" value="0" />
			<input type="checkbox" name="activeFrontend"{if $lang.activeFrontend} checked="checked" {/if} value="1"/>
		</td>
	</tr>
	<tr>
		<td colspan="2">[[Active for Backend]]</td>
		<td>
			<input type="hidden" name="activeBackend" value="0" />
			<input type="checkbox" name="activeBackend"{if $lang.activeBackend} checked="checked" {/if} value="1"/>
		</td>
	</tr>
    <tr>
        <td colspan="2">Date Format</td>
        <td>
        	<input type="text" name="date_format" value="{$request_data.date_format|default:'%Y-%m-%d'}" /><br />
        	<small>
        		default format symbols that are supported: <br />%Y, %m, %d (%Y - year, %m - month, %d - day)<br /><br />
        		example of March,9 2008:<br />
        		&nbsp;&nbsp;%Y-%m-%d => 2008-03-09<br />
				&nbsp;&nbsp;%m/%d/%Y => 03/09/2008<br />
				&nbsp;&nbsp;%d.%m.%Y => 09.03.2008<br /><br />
        	</small>
        </td>
    </tr>
    <tr>
        <td colspan="2">Decimal Separator</td>
        <td>
            <select name="decimal_separator">
	        	<option value=""{if $request_data.decimal_separator == ''} selected {/if}>none</option>
                <option value="."{if $request_data.decimal_separator == '.'} selected {/if}>dot</option>
                <option value=","{if $request_data.decimal_separator == ','} selected {/if}>comma</option>
            </select>
        </td>
    </tr>
    <tr>
        <td colspan="2">Thousands Separator</td>
        <td>
        	<select name="thousands_separator">
				<option value=".">dot</option>
				<option value=","{if $request_data.thousands_separator == ',' or empty($request_data.thousands_separator)} selected {/if}>comma</option>
				<option value=" "{if $request_data.thousands_separator == ' '} selected {/if}>space</option>
            </select>
        </td>
    </tr>
    <tr>
        <td colspan="2">Decimals</td>
        <td>
        	<select name="decimals">
        		<option value="0">0</option>
				<option value="1"{if $request_data.decimals == '1'} selected {/if}>1</option>
				<option value="2"{if $request_data.decimals == '2'} selected {/if}>2</option>
				<option value="3"{if $request_data.decimals == '3'} selected {/if}>3</option>
				<option value="4"{if $request_data.decimals == '4'} selected {/if}>4</option>
				<option value="5"{if $request_data.decimals == '5'} selected {/if}>5</option>
            </select>
        </td>
    </tr>
	<tr>
		<td colspan="2">Right to Left Layout</td>
		<td>
			<input type="hidden" name="rightToLeft" value="0" />
			<input type="checkbox" name="rightToLeft"{if $lang.rightToLeft} checked="checked" {/if} value="1" />
		</td>
	</tr>
    <tr>
        <td colspan="3">
            <div class="floatRight">
                <input type="hidden" name="action" value="add_language" />
                <input type="submit" value="Add" class="grayButton" />
            </div>
        </td>
    </tr>
</form>
</table>

</fieldset>